package com.xingu.xg.config;

import com.xingu.xg.service.XgMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * @param
 * @BelongsProject: xg-interview-java
 * @BelongsPackage: com.xingu.xg.config
 * @author: L
 * @Date: 2024/5/20 0:55
 * @return
 */
@Component
public class MenuApplicationRunner implements ApplicationRunner {
    @Autowired
    private XgMenuService xgMenuService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        xgMenuService.loadMenu();
    }
}
